<?php

class InfrastructureDataRetriever extends URLDataRetriever {

    protected function init($args) {
        parent::init($args);
        $this->addFilter('$format', $args['FORMAT']);
        $this->setOption('name', $args['NAME']);
        if (isset($args['GROUP']) && strlen($args['GROUP'])) {
            $this->setOption('group', $args['GROUP']);
        }
        if (isset($args['GROUPNAME']) && strlen($args['GROUPNAME'])) {
            $this->setOption('groupname', $args['GROUPNAME']);
        }
    }
}

